﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace DigitalImage.softLib.stages {
    class CCTdifference:IColorTransformation {
        private Bitmap source;
        public CCTdifference(Bitmap source) {
            this.source = source;
        }

        public System.Drawing.Bitmap transform(System.Drawing.Bitmap inputImage) {
            return CImageUtil.matrixToBitmap(  
                CImageUtil.diff(
                    CImageUtil.bitmapToByteMatrix(source), CImageUtil.bitmapToByteMatrix(inputImage)));
        }

    }
}
